<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<style type="text/css">
td {
	border: 1px black solid;
}
</style>
<script type="text/javascript">
function selectInput()
{		
		var form = document.getElementById("forma");
		var input = form.getElementsByTagName("input");
		
		for (var i=0; i<input.length; i++)
		{
			if (input[i].type == "button")
			{
				alert(input[i]);
			} 
			
		}


		return false;
}
</script>
</head>
<body>
<form action="" id="forma" onsubmit="return selectInput();">
<input type="radio" value="first" /><br />
<input type="checkbox" value="second" /><br />
<input type="file" value="3rd" /><br />
<input type="button" value="4th" /><br />
<input type="text" value="5th" /><br />
<input type="password" value="6th" /><br />
<input type="image" value="7th" /><br />

<div><input type="checkbox" value="8th" /><br />
<input type="file" value="9th" /><br />
<input type="button" value="10th" /><br />
<input type="text" value="1111th" /><br />
</div>
<table>
	<tr>
		<td><input value="2121th" type="reset" /></td>
		<td><input value="Submit" type="submit" /></td>
		<td><input value="6846th" type="reset" /></td>
	</tr>
</table>
</form>
</body>
</html>